<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>前端主页</title>
    <link type="text/css" rel="stylesheet" href="/css/front.css">
</head>
<body>
<!-- 引入页面公共部分-->
<div th:include="/front/top::top"></div>
<div id="container">
    <ul>
        <th:block th:each="goods:${goodsList}">
            <li>
                <img th:src="${goods.picture}" alt="">
                <div class="info">
                    <p>
                        名称:
                        <span th:text="${goods.goodsName}"></span>
                        价格:
                        <span th:text="${goods.price}"></span>
                    </p>
                    <p>
                        产地:
                        <span th:text="${goods.address}"></span>
                        生产日期:
                        <span th:text="${#dates.format(goods.produceDate,'yyyy-MM-dd')}"></span>
                    </p>
                </div>
            </li>
        </th:block>
    </ul>
</div>
</body>
</html>